package TestDay;

public class Test09 {
    public static void main(String[] args) {
        int max=getMax(20,30,56);
        System.out.println("最大值为"+max);
    }
    public static int getMax(int a,int b,int c){
        if(a>b&&a>c){
            return a;
        }else if(b>a&&b>c){
            return b;
        }else{
            return c;
        }
    }
}
